<div layout:fragment="header">
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse" sec:authorize="isAuthenticated()">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="/admin/dashboard.html">Spring Boot and Thymeleaf</a>
  </div>
  <!-- /.navbar-header -->
  
  <ul class="nav navbar-top-links navbar-right" sec:authorize="isAuthenticated()">
    <li><a href="../dashboard.html" th:href="@{/admin/dashboard.html}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a></li>
    <li class="dropdown">
      <a class="dropdown-toggle" data-toggle="dropdown" href="#" ><i class="fa fa-user fa-fw"></i> <span sec:authentication="name">Username</span> &nbsp;<i class="fa fa-caret-down"></i></a>
      <ul class="dropdown-menu dropdown-user">
        <li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a></li>
        <li class="divider"></li>
        <li><a th:href="@{/logout}" href="/logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a></li>
      </ul>
      <!-- /.dropdown-user -->
    </li>
    <!-- /.dropdown -->
  </ul>
  <!-- /.navbar-top-links -->
</div>